package com.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Credits extends Activity implements OnClickListener {
	@Override
    public void onCreate(Bundle savedInstanceState) {
		//start new activity.
        super.onCreate(savedInstanceState);
        setContentView(R.layout.credits);
        
        //a Back button
        Button button4 = (Button) findViewById(R.id.back);
        button4.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		if(v == findViewById(R.id.back))
		{
			//on the event of clicking back, go back
			this.finish();
    		Intent intent  = new Intent(getBaseContext(), MemoryActivity.class);
    		startActivity(intent);
		}
		
	}
}
